package data;

import java.util.List;

public class DeptTypeInfoDao {
	public static int countAll(DaoSession daoSession){
		return (Integer)daoSession.selectOne(
			"FINGERDB_DEPTTYPEINFO.countAll");		
	}
    @SuppressWarnings("unchecked")
	public static List<DeptTypeInfoBean> selectAll(
			DaoSession daoSession, String typeid) {
    	return (List<DeptTypeInfoBean>)daoSession.selectList(
    			"FINGERDB_DEPTTYPEINFO.selectAll", typeid);
    }
	public static void insert(DaoSession daoSession, DeptTypeInfoBean depttype){
		daoSession.insert("FINGERDB_DEPTTYPEINFO.insert", depttype);
	}
	
	public static int delete(DaoSession daoSession, String typeid){
		return daoSession.delete("FINGERDB_DEPTTYPEINFO.delete", typeid);
	}
	
	public static DeptTypeInfoBean select(DaoSession daoSession, String typeid){
		return (DeptTypeInfoBean)daoSession.selectOne(
			"FINGERDB_DEPTTYPEINFO.select", typeid);
	}
}
